//
//  LJJGroupTableViewCell.m
//  shopTest
//
//  Created by 梁佳佳 on 2016/11/17.
//  Copyright © 2016年 梁佳佳. All rights reserved.
//

#import "LJJGroupTableViewCell.h"

@interface LJJGroupTableViewCell ()

@property (strong, nonatomic) UIImageView *myImageView;    /** 图片 **/

@end

@implementation LJJGroupTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self addSubview:self.myImageView];
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    __weak typeof(self) weakSelf = self;
    [self.myImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(weakSelf).with.insets(UIEdgeInsetsMake(0, 0, 10, 0));
    }];
}
#pragma mark -
#pragma mark - method
- (void)setImageURL:(NSString *)imageURL
{
    _imageURL = imageURL;
    [_myImageView sd_setImageWithURL:[NSURL URLWithString:imageURL]];
}
#pragma mark -
#pragma mark - lazy method
- (UIImageView *)myImageView
{
    if (!_myImageView) {
        _myImageView = [[UIImageView alloc] init];
    }
    return _myImageView;
}
- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
}
@end
